package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_xiuxian_pvp_battle", desc = "凡人修仙传-战斗日志", autoSave = true, uploadCk = true, isCross = true)
public class LogXiuXianPvpBattle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "宗门id")
    private int campId;

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "进攻玩家境界-阶级")
    private int stateId;

    @FieldTypeAnnotation(desc = "攻击值")
    private long attack;

    @FieldTypeAnnotation(desc = "血量值")
    private long hp;

    @FieldTypeAnnotation(desc = "被击杀玩家id")
    private long killUserId;

    @FieldTypeAnnotation(desc = "被击杀玩家境界-阶段")
    private int killUserStateId;

    @FieldTypeAnnotation(desc = "获得n击杀战绩")
    private long killScore;

    @FieldTypeAnnotation(desc = "击杀时间")
    private Date killTime;

    @FieldTypeAnnotation(desc = "成功参与抢占宝地列表")
    private List<Integer> seizePlace;

    @FieldTypeAnnotation(desc = "获得抢占宗门积分")
    private long seizeScore;

    public LogXiuXianPvpBattle(int activityId, int campId, int round, long userId, int stateId, long attack, long hp, long killUserId, int killUserStateId, long killScore, Date killTime, List<Integer> seizePlace, long seizeScore) {
        this.activityId = activityId;
        this.campId = campId;
        this.round = round;
        this.userId = userId;
        this.stateId = stateId;
        this.attack = attack;
        this.hp = hp;
        this.killUserId = killUserId;
        this.killUserStateId = killUserStateId;
        this.killScore = killScore;
        this.killTime = killTime;
        this.seizePlace = seizePlace;
        this.seizeScore = seizeScore;
    }


    public long getUserId() {
        return userId;
    }

}
